package py.progweb.sgc.model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the VALATRIBEVENTOS database table.
 * 
 */
@Entity
@Table(name="VALATRIBEVENTOS")
public class ValorAtributoEvento extends EntidadBase implements Serializable {
	private static final long serialVersionUID = 1L;
	private long codValorPk;
	private String strDescrip;
	private AtributoEvento atributoEvento;

    public ValorAtributoEvento() {
    }


	@Id
	@SequenceGenerator(name="VALATRIBEVENTOS_CODVALORPK_GENERATOR", sequenceName="SQ_PK_VALATRIBEVENTOS")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="VALATRIBEVENTOS_CODVALORPK_GENERATOR")
	@Column(name="COD_VALOR_PK")
	public long getCodValorPk() {
		return this.codValorPk;
	}

	public void setCodValorPk(long codValorPk) {
		this.codValorPk = codValorPk;
	}


	@Column(name="STR_DESCRIP")
	public String getStrDescrip() {
		return this.strDescrip;
	}

	public void setStrDescrip(String strDescrip) {
		this.strDescrip = strDescrip;
	}


	//bi-directional many-to-one association to Atribevento
    @ManyToOne
	@JoinColumn(name="COD_ATRIBEVENTO")
	public AtributoEvento getAtributoEvento() {
		return this.atributoEvento;
	}

	public void setAtributoEvento(AtributoEvento atributoEvento) {
		this.atributoEvento = atributoEvento;
	}


	@Override
	public Object getPK() {
		return getCodValorPk();
	}
	
}